const mongoose = require('mongoose')

const Schema = mongoose.Schema

const UserType = {
    username: String,
    password: String,
    gender: Number, // 性别 0表示未知 1表示男 2表示女
    introduction: String,    // 简介
    avatar: String,
    role: Number,   // 权限 0表示普通 1表示高级
}

const UserModel = mongoose.model("user", new Schema(UserType))

module.exports = UserModel